using System;
using System.Collections.Generic;
using System.Linq;

namespace Syngine.Physics.Components
{
	public abstract class PlayerSprite : DrawableSprite
	{
		public float Health { get; set; }

		public override void Initialize()
		{
			Health = 1.0f;

			InitializeInput();
			
			base.Initialize();
		}

		public override void UnloadContent()
		{
		}

		public override void Update(UpdateContext context)
		{
			AnimationPlayer.Update(context);
			base.Update(context);
		}

		protected override void DrawCore(DrawContext context)
		{
			AnimationPlayer.Draw(context);
		}

		protected abstract void InitializeInput();
	}
}